#!/bin/sh

cd $(dirname $0)
BASE_DIR=$(pwd)

if [ -d $BASE_DIR/../proxy/public ];then
mkdir $BASE_DIR/../proxy/public
fi

if [ -d $BASE_DIR/../proxy/public/admin ];then
rm -rf $BASE_DIR/../proxy/public/admin
fi

echo "Starting build."

cp -r $BASE_DIR/dist $BASE_DIR/../proxy/public/admin

echo "Build completed."